class Animal:
   name = 'animal'
def shout(self):
    print('animal shout')

animal = new Animal()
animal.shout()

class Dog(Animal):
    class Dog:
        name = 'dog'


        def eat(selfself):
            print('dog eat')

            dog = Dog()
            print(dog.name)
            print(dog.eat())


            dog1 = Dog()
            print(dog1.name)
            print(Dog.name)